package com.mbc.common.dao;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;

import com.mbc.common.data.BranchDataList;
import com.mbc.common.data.ReferenceData;
import com.mbc.common.entities.Branch;
import com.mbc.common.entities.BranchRpt;

public interface BranchDAO {
	void create(Branch entity)throws SQLException;
	void update(Branch entity)throws SQLException;
	void delete(long key)throws SQLException;
	Branch find(long key)throws SQLException;
	ArrayList<Branch> findAll()throws SQLException;
	Branch findByUserId(long userId) throws SQLException;
	BranchDataList getList(Branch cri) throws SQLException;
	ArrayList<ReferenceData<Long>> getBranchRefList()throws SQLException;
	/** MBC **/
	ResultSet prepareBranchReport(BranchRpt info) throws SQLException;
	public Branch findBranchByCode(String code) throws SQLException;
}
